package com.itheima.test;

/**
 * @Author 王加鑫
 * @Date 2021/4/19 14:47
 * @Version 1.0
 * 初始While循环
 */
public class WhileTest01 {
    public static void main(String[] args) {
        int i = 1;
        int sum = 0;
        while (i<=100){
            sum+=i++;
        }
        System.out.println(sum);

    }
}
